
package coms.ejb;

import coms.dataaccess.dao.ConferenceDAO;
import coms.dataaccess.hibernate.HibernateDAOFactory;
import coms.dto.Conference;
import coms.dto.User;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.ejb.Stateless;

@Stateless (mappedName="ConferenceBean")
public class ConferenceBean extends GenericBean<Conference> implements ConferenceBeanRemote{
    
  private ConferenceDAO conferenceDAO;
    
    @PostConstruct
    public void construct() {
        super.construct();
        HibernateDAOFactory factory = new HibernateDAOFactory();
        conferenceDAO = factory.getConferenceDAO();
    }
    
    @Override
      public List<Conference> searchConferenceByParticipant(User user) {
      return conferenceDAO.searchConferenceByParticipant(user);
    }
    
}
